/**
 * 严重邮箱
 * @param str
 * @returns {boolean}
 */
function isEmail(str){
    var reg = /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/;
    return reg.test(str);
}

/**
 * 倒计时
 * @type {number}
 */
var countdown=60;
function settime(obj) {
    if (countdown == 0) {
        obj.attr("disabled",false)
        obj.val("免费获取验证码");
        countdown = 60;
        return;
    } else {
        obj.attr("disabled", true);
        obj.val("重新发送(" + countdown + ")");
        countdown--;
    }
    setTimeout(function() {
            settime(obj) }
        ,1000)
}